package com.microlecture.service.impl;

import com.microlecture.entity.CookbookStep;
import com.microlecture.mapper.CookbookStepMapper;
import com.microlecture.service.CookbookStepService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class CookbookStepServiceImpl implements CookbookStepService {

    @Autowired
    private CookbookStepMapper cookbookStepMapper;

    @Override
    public int deleteByPrimaryKey(Integer id) {
        return cookbookStepMapper.deleteByPrimaryKey(id);
    }

    @Override
    public int insertSelective(CookbookStep record) {
        return cookbookStepMapper.insertSelective(record);
    }

    @Override
    public CookbookStep selectByPrimaryKey(Integer id) {
        return cookbookStepMapper.selectByPrimaryKey(id);
    }

    @Override
    public int updateByPrimaryKeySelective(CookbookStep record) {
        return cookbookStepMapper.updateByPrimaryKeySelective(record);
    }

    @Override
    public List<CookbookStep> selectByCondition(Integer cookbookid) {
        return cookbookStepMapper.selectByCondition(cookbookid);
    }
}